package util {
public class HtmlUtils {
    public static function toPublicStaticFinalFormat(data:String):String {
        var finalName = "";
        var codec:String = "__codec__:";
        if (data.indexOf(codec) == 0) {
            var actualName:String = data.substring(codec.length, data.length);
            for (var i:int = 0; i < actualName.length; i++) {
                var ch:String = actualName.charAt(i);
                if (ch.toUpperCase() == ch) {
                    finalName = finalName + "_" + ch;
                } else {
                    finalName = finalName + ch.toUpperCase();
                }
            }
        }
        return finalName;
    }
}
}